package linter.linterjava.service;

import com.github.pagehelper.PageInfo;
import linter.linterjava.POJO.DO.CurriculumNote;
import com.baomidou.mybatisplus.extension.service.IService;
import linter.linterjava.POJO.DTO.CurriculumNoteDTO;
import linter.linterjava.POJO.UtilDTO.PageInfoDTO;

import java.util.List;

/**
* @author 北煜
* @description 针对表【curriculum_note(课程笔记表)】的数据库操作Service
* @createDate 2024-07-13 19:25:58
*/
public interface CurriculumNoteService extends IService<CurriculumNote> {

    /**
     * @param curriculumNoteDTO 课程笔记类 -- 笔记内容 标题
     * @param uuid 用户id
     * @return 返回成功与否
     */
    String createCurriculumNote(CurriculumNoteDTO curriculumNoteDTO, Long uuid);

    /**
     * @param curriculumNoteDTO 课程笔记类 -- 笔记id
     * @param uuid 用户id
     * @return 返回笔记内容
     */
    CurriculumNote getCurriculumNoteById(CurriculumNoteDTO curriculumNoteDTO, Long uuid);

    /**
     * @param uuid 用户id
     * @return 返回课程笔记列表
     */
    List<CurriculumNote> getCurriculumNoteList(Long uuid);

    /**
     * @param curriculumNoteDTO 课程笔记类 -- 可以进行笔记名称、类型、内容的模糊搜索
     * @param uuid 用户id
     * @return 返回课程笔记列表
     */
    List<CurriculumNote> queryCurriculumNote(CurriculumNoteDTO curriculumNoteDTO, Long uuid);
}
